/* teacher.css */
/* 路径: src/main/webapp/static/css/teacher.css */

/* 基础变量 */


/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', '微软雅黑', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* 教师容器布局 */
.teacher-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

/* 侧边导航栏 */
.sidebar {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    position: fixed;
    width: 240px;
    height: 100vh;
}

.sidebar-header {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.sidebar-header i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.nav-item {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--secondary-color);
}

/*.nav-item.active {*/
/*    background: var(--secondary-color);*/
/*    !*font-weight: 500;*!*/
/*}*/
.submenu {
    max-height: 0;
    transition: max-height 0.3s ease-out;
    padding-left: 1.5rem;
    list-style: none;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
    display: none;
}
/*.submenu li.active {*/
/*    background: var(--secondary-color);*/
/*    border-left: 3px solid var(--secondary-color);*/
/*   */
/*}*/
.submenu.active {
    max-height: 100px; /* 根据实际内容调整 */
    transition: max-height 0.5s ease-in;
    display: block;
    /*background: var(--secondary-color);*/
}

.submenu li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 4px;
}
.submenu li:hover {
    background: var(--secondary-color);       /* 主色调 */
    color: white;             /* 文字反白 */
    transform: translateX(5px); /* 右移动画 */
    transition: all 0.3s ease;  /* 平滑过渡 */
}
.submenu li:hover::after {
    /*content: "→";*/
    margin-left: 8px;
    color: var(--primary-color);
}
.fa-book-open {
    transition: transform 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* 主内容区 */
.content {
    grid-column: 2;
    padding: 2rem;
    /*margin-left: 240px;*/
    margin-left: var(--sidebar-width);
}
.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.content-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}



.profile-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.profile-btn:hover {
    background: #e9ecef;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 6px;
    padding: 0.5rem;
    min-width: 150px;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-text);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
}

/* 主页数据卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 新增授课模块 */
.course-selector {
    position: relative;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-selector:hover {
    border-color: #3498db;
}

.selected-course {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #7f8c8d;
}

.course-list {
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    top: 110%;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.course-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.course-item:hover {
    background: #f8f9fa;
}

.course-code {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 80px;
}

.datetime-picker {
    position: relative;
}

.styled-datetime {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem !important;
    border: 2px solid #eee;
    border-radius: 8px;
    appearance: none;
}

.datetime-picker i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.lecture-summary {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    resize: vertical;
    transition: all 0.3s ease;
}

.lecture-summary:focus {
    border-color: #3498db;
    outline: none;
}

/* 课程选择器激活状态 */
.course-selector.active .course-list {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 错误状态样式 */
.course-selector.invalid {
    border: 2px solid #ff4444;
    border-radius: 4px;
}

.error-msg {
    color: #ff4444;
    font-size: 0.9em;
    margin-top: 5px;
}
/* 点击确认后的弹窗 */
.success-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}
@keyframes slideOut {
    from { top: 20px; }
    to { top: -100px; }
}

@keyframes slideIn {
    from { top: -100px; }
    to { top: 20px; }
}

.success-toast i {
    font-size: 20px;
}


/* 不同类型颜色配置 */
.toast-success {
    background: #4CAF50;
    color: white;
    border: 1px solid #388E3C;
}

.toast-warning {
    background: #FFC107;
    color: #212121;
    border: 1px solid #FFA000;
}

.toast-error {
    background: #F44336;
    color: white;
    border: 1px solid #D32F2F;
}

/* 图标样式 */
.toast-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}

/* 动画定义 */
@keyframes slideIn {
    from { top: -100px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

@keyframes slideOut {
    from { top: 20px; opacity: 1; }
    to { top: -100px; opacity: 0; }
}




/* 修改授课模块 */
.lecture-edit-form {
    padding: 2rem;
}

.course-info-display {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
}

.course-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;

}
.course-badge.active {
    /*background: var( --secondary-color) !important;*/
    /*border-color: var( --secondary-color);*/
    color: var( --secondary-color) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    background: inherit !important;
    border-color: inherit !important;
    box-shadow: none !important;

}
/* 修改后 */
.course-badge.active .course-name {
    color: var(--secondary-color) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 悬停状态 */
.course-badge:hover:not(.active) {
    background: #ebf5ff;
    border-color: #c6e2ff;
}

.course-code2 {
    font-weight: 600;
    letter-spacing: -0.02em;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;

}

.meta-info {
    display: flex;
    gap: 1.5rem;
    color: #7f8c8d;
    font-size: 0.9em;
}
/*修改授课内容*/
.lecture-content {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-height: 150px;
    resize: vertical;
}

.content-editor h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}


.btn-cancel {
    background: #f8f9fa;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e74c3c;
    color: white;
}

/* 时间选择器增强 */
.styled-datetime::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
}

/* 只读字段样式 */
.readonly-field {
    background: #f8f9fa;
    cursor: not-allowed;
}


/* 删除授课模块样式 */
.danger-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 1.5rem 0;
    overflow: hidden;
}

.danger-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.danger-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.header-tips {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9em;
    opacity: 0.9;
}

/* 筛选工具栏 */
.filter-bar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.2rem 2rem;
    background: #fff9f9;
    border-bottom: 1px solid #ffe3e3;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-date {
    padding: 0.6rem 1rem;
    border: 2px solid #ffd8d8;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
}

.filter-date:focus {
    border-color: #ff6b6b;
    outline: none;
}

.btn-filter {
    background: #ff6b6b;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

/* 危险表格样式 */
.danger-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.danger-table th,
.danger-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ffeded;
}

.danger-table th {
    background: #fff5f5;
    color: #ff6b6b;
    font-weight: 500;
}

.danger-table tr:hover {
    background: #fffafa;
}

/* 复选框样式 */
.check-all, .lecture-check {
    width: 18px;
    height: 18px;
    accent-color: #ff6b6b;
    cursor: pointer;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85em;
}

.status-badge.SCHEDULED { background: #ffe8cc; color: #ff922b; }
.status-badge.COMPLETED { background: #d3f9d8; color: #2b8a3e; }
.status-badge.CANCELLED { background: #ffe3e3; color: #ff6b6b; }

/* 删除按钮 */
.btn-delete {
    background: none;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #ff6b6b;
    color: white;
}

/* 批量操作面板 */
.batch-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 2rem;
    background: #fff5f5;
    border-top: 1px solid #ffd8d8;
    position: sticky;
    bottom: 0;
}

.btn-batch-delete {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-batch-delete:disabled {
    background: #ffc9c9;
    cursor: not-allowed;
}

.btn-batch-delete:not(:disabled):hover {
    background: #ff5252;
    transform: translateY(-1px);
}

/* 删除确认模态框 */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}



.modal-header {
    background: #ff6b6b;
    color: white;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cancel, .btn-confirm {
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f1f3f5;
    color: #495057;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.btn-confirm {
    background: #ff6b6b;
    color: white;
}

.btn-confirm:hover {
    background: #ff5252;
}

/* 响应式处理 */
@media (max-width: 768px) {
    .danger-table td:nth-child(5),
    .danger-table th:nth-child(5) {
        display: none;
    }

    .filter-bar {
        flex-wrap: wrap;
    }
}







/*考勤模块*/
.attendance-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.attendance-header {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-export {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: rgba(255,255,255,0.25);
}

/* 统计概览 */
.attendance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.stat-item {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.today { background: #3498db; color: white; }
.stat-icon.week { background: #2ecc71; color: white; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .label {
    font-size: 0.9em;
    color: #7f8c8d;
}

.stat-info .value {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* 增强表格 */
.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.enhanced-table th {
    background: var(--primary-color);
    color: white;
    padding: 1.2rem;
    font-weight: 500;
}

.enhanced-table td {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.course-info {
    display: flex;
    flex-direction: column;
}

.course-name {
    font-weight: 500;
    color: var(--primary-color);
}

.course-time {
    font-size: 0.9em;
    color: #7f8c8d;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #ecf0f1;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    transition: width 0.5s ease;
}

.progress-bar span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8em;
}

.status-badge.completed { background: #d4efdf; color: #27ae60; }
.status-badge.pending { background: #fdebd0; color: #f39c12; }
.status-badge.archived { background: #ebedef; color: #7f8c8d; }

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions button {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-actions button:hover {
    background: var(--secondary-color);
    color: white;
}

/* 响应式处理 */
@media (max-width: 768px) {
    .mobile-hide {
        display: none;
    }

    .enhanced-table td {
        padding: 0.8rem;
    }
}
/* 考勤模态框样式 */
.attendance-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}



@keyframes modalSlide {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #95a5a6;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}


/* 成绩管理样式 */
.grades-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.grades-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid #eee;
    border-radius: 25px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.total-score {
    color: var(--success-color);
    font-weight: 500;
}

.grade-modal {
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}


/* 个人信息管理样式 */
.profile-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.profile-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.avatar-section {
    border-right: 2px solid #eee;
    padding-right: 2rem;
}

.avatar-upload {
    text-align: center;
}

.avatar-preview {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-upload {
    background: #3498db;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upload:hover {
    background: #2980b9;
}

.info-group {
    margin-bottom: 2rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.info-group h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.info-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
}

.info-grid dt {
    font-weight: 600;
    color: #7f8c8d;
}

.info-grid dd {
    color: #2c3e50;
    margin: 0;
}

.profile-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.profile-form input,
.profile-form select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.profile-form input:focus {
    border-color: #3498db;
    outline: none;
}


/* 修改密码表单 */
.password-form {
    max-width: 500px;
    margin-top: 1.5rem;
}

.password-form .form-group {
    margin-bottom: 1.5rem;
}

.password-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.password-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
}

/*重置表单按钮样式*/
.btn-reset {
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/*.btn-reset:hover {*/
/*    color: white;*/
/*    !*border-color: #c0c4cc;*!*/
/*    box-shadow: 0 2px 8px rgba(0,0,0,0.05);*/
/*}*/
.spin-on-hover:hover {
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg);
    }
}



.btn-reset i {
    font-size: 14px;

}
/*创建授课计划按钮*/
.btn-submit {
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.lecture-btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;

    /* 渐变背景 & 阴影 */
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    box-shadow: 0 4px 6px rgba(229, 62, 62, 0.1),
    0 1px 3px rgba(0,0,0,0.08),
    inset 0 -2px 4px rgba(231, 76, 60, 0.3);

    /* 文字样式 */
    color: white;
    display: inline-flex;
    align-items: center;
    /*gap: 4px;*/
}

.lecture-btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(229, 62, 62, 0.2),
    0 3px 6px rgba(0,0,0,0.1),
    inset 0 -2px 4px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #ff7676 0%, #eb6656 100%);
}


/*创建授课表单确认框*/
 .confirmation-modal {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0,0,0,0.5);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 1000;
 }

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 800px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem auto;
    animation: modalSlide 0.3s ease;
    overflow: hidden;
}

.modal-header h4 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.modal-footer {
    padding-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 190px;
}



.btn-confirm {
    /*text-align: right;*/
    background: #3498db;
    color: white;
}

.btn-confirm:hover {
    background: #2980b9;
}

.btn-cancel {
    /*text-align: left;*/

    background: #e74c3c;
    color: white;
}

.btn-cancel:hover {
    background: #c0392b;
}



/* attendance.css 或 common.css 中添加 */
/*考勤弹窗*/
/* 基础表格样式 */
.detail-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-family: 'Segoe UI', system-ui;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 表头设计 */
.detail-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.detail-table th {
    padding: 16px 24px;
    font-weight: 500;
    text-align: left;
    position: relative;
}

.detail-table th:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* 表格行设计 */
.detail-table tbody tr {
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.03);
}

.detail-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-table td {
    padding: 18px 24px;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

/* 斑马纹效果 */
.detail-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* 状态标签设计 */
.status {
    position: relative;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s;
}

.status::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

/* 不同状态颜色 */
.status.正常 {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.status.迟到 {
    background: rgba(246, 173, 85, 0.1);
    color: #f6ad55;
}

.status.缺勤 {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-table {
        border-radius: 0;
        box-shadow: none;
    }

    .detail-table thead {
        display: none;
    }

    .detail-table tbody tr {
        display: block;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .detail-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: none;
    }

    .detail-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #718096;
        margin-right: 16px;
        flex: 1;
    }

    .status {
        margin-left: auto;
    }
}

/* 悬浮动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-table tbody tr {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}







